package com.weng.bigdata.micro.service.schedule.center.fallback;

import com.weng.bigdata.micro.service.common.Constants;
import com.weng.bigdata.micro.service.schedule.center.feign.ScheduleJobFeignService;
import com.weng.bigdata.micro.service.schedule.center.model.AddJobReq;
import com.weng.bigdata.micro.service.schedule.center.model.UpdateJobReq;
import com.weng.bigdata.micro.service.warehouse.adapter.feign.WarehouseExecuteFeignService;
import com.weng.bigdata.micro.service.warehouse.adapter.model.req.ExecuteSqlReq;
import com.weng.framework.core.model.ResponseData;
import org.springframework.stereotype.Component;

import javax.validation.Valid;

/**
 * @author wengzhonghui
 * @date 2021/4/2 11:07
 */
@Component
public class ScheduleJobFallBack implements ScheduleJobFeignService {

	@Override
	public ResponseData add(@Valid AddJobReq addJobReq) {
		return ResponseData.failed(Constants.DEFAULT_FAIL_MSM);
	}

	@Override
	public ResponseData update(UpdateJobReq updateJobReq) {
		return ResponseData.failed(Constants.DEFAULT_FAIL_MSM);
	}

	@Override
	public ResponseData delete(String id) {
		return ResponseData.failed(Constants.DEFAULT_FAIL_MSM);
	}

	@Override
	public ResponseData deleteBatch(String ids) {
		return ResponseData.failed(Constants.DEFAULT_FAIL_MSM);
	}

	@Override
	public ResponseData start(String id) {
		return ResponseData.failed(Constants.DEFAULT_FAIL_MSM);
	}

	@Override
	public ResponseData stop(String id) {
		return ResponseData.failed(Constants.DEFAULT_FAIL_MSM);
	}
}
